package org.dromara.wmscloud.domain.bo;

import org.dromara.wmscloud.domain.BaseLocation;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 货位业务对象 base_location
 *
 * @author hou
 * @date 2025-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseLocation.class, reverseConvertGenerate = false)
public class BaseLocationBo extends BaseEntity {


    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long locationId;
    /**
     * 仓库
     */
    @NotBlank(message = "仓库不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseCode;

    /**
     * 货位编码
     */
    @NotBlank(message = "货位编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationCode;

    /**
     * 货位名称
     */
    private String locationName;

    /**
     * 货位类型
     */
    private String locationType;


}
